package com.taptech.doufu.ui.dialog;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import androidx.annotation.NonNull;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.taptech.doufu.R;

/**
 * Created by Wyatt on 2017/9/18/018.
 */

public class TipSingleBtnDialog extends Dialog{
    private TextView gift_promat_info; //描述
    private ImageView gift_end_end; //按钮
    private String tip;
    public TipSingleBtnDialog(@NonNull Context context,int theme,String tip) {
        super(context,theme);
        this.tip = tip;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_single_btn);
        gift_promat_info = (TextView) findViewById(R.id.gift_promat_info);
        gift_end_end = (ImageView) findViewById(R.id.gift_end_end);
        gift_end_end.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
            }
        });
        gift_promat_info.setText(tip);
    }
}
